import validator from '../validator';
export class ChooseOfficial_Rules {
  constructor() {
    this.registerTagTypeCode = [
      validator.required('请选择角色类型', 'onChange')
    ];
    this.name = [
      validator.required('请填写姓名')
    ];
    this.idCardTypeCode = [
      { required: true, message: '请选择证件类型', trigger: 'onChange' }
    ];
    this.idCardNumber = [
      {
        ...validator.required('请填写身份证号码'),
        validator: validator.checkIdNumber,
        trigger: 'onBlur'
      }
    ];
  }
}
